# -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models


class Migration(SchemaMigration):

    def forwards(self, orm):
        # Adding model 'citystate'
        db.create_table('citystate_citystate', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('name', self.gf('django.db.models.fields.CharField')(max_length=255)),
            ('full_name', self.gf('django.db.models.fields.CharField')(max_length=255)),
        ))
        db.send_create_signal('citystate', ['citystate'])

        # Adding model 'zipcode'
        db.create_table('citystate_zipcode', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('zip', self.gf('django.db.models.fields.CharField')(default='', max_length=10)),
            ('state', self.gf('django.db.models.fields.CharField')(default='', max_length=2)),
            ('latitude', self.gf('django.db.models.fields.CharField')(default='', max_length=10)),
            ('longitude', self.gf('django.db.models.fields.CharField')(default='', max_length=10)),
            ('city', self.gf('django.db.models.fields.CharField')(max_length=50, null=True, blank=True)),
            ('full_state', self.gf('django.db.models.fields.CharField')(max_length=50, null=True, blank=True)),
        ))
        db.send_create_signal('citystate', ['zipcode'])

    def backwards(self, orm):
        # Deleting model 'citystate'
        db.delete_table('citystate_citystate')

        # Deleting model 'zipcode'
        db.delete_table('citystate_zipcode')

    models = {
        'citystate.citystate': {
            'Meta': {'object_name': 'citystate'},
            'full_name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '255'})
        },
        'citystate.zipcode': {
            'Meta': {'object_name': 'zipcode'},
            'city': ('django.db.models.fields.CharField', [], {'max_length': '50', 'null': 'True', 'blank': 'True'}),
            'full_state': ('django.db.models.fields.CharField', [], {'max_length': '50', 'null': 'True', 'blank': 'True'}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'latitude': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '10'}),
            'longitude': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '10'}),
            'state': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '2'}),
            'zip': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '10'})
        }
    }

    complete_apps = ['citystate']